﻿using System;

namespace RexToy.UI.Controls
{
    public class Image : Control
    {
        public uint Height
        {
            get { return this.__domNode._element.Height; }
            set { this.__domNode._element.Height = value; }
        }

        public uint Width
        {
            get { return this.__domNode._element.Width; }
            set { this.__domNode._element.Width = value; }
        }

        public Image(string srcUrl)
        {
            this.__domNode = RexToy.UI.Controls.DomNode.Create(new DomNodeCreateOptions()
            {
                tag = Tag.Img,
                src = srcUrl
            });
        }
    }
}
